package com.example.transaction.service;

import com.example.transaction.model.TransactionRecord;

import java.math.BigDecimal;
import java.util.List;

public interface TransactionRecordService {
    
    // 创建交易记录
    TransactionRecord createTransactionRecord(String fromAccount, String toAccount, BigDecimal amount);
    
    // 更新交易状态
    TransactionRecord updateTransactionStatus(String transactionId, TransactionRecord.TransactionStatus status);
    
    // 获取交易记录
    TransactionRecord getTransactionRecord(String transactionId);
    
    // 获取账户相关的所有交易记录
    List<TransactionRecord> getAccountTransactions(String accountNumber);
    
    // 获取所有交易记录
    List<TransactionRecord> getAllTransactionRecords();
}